FROM laravelsail/php74-composer:latest

WORKDIR /var/www/html

ARG NODE_VERSION=16

RUN docker-php-ext-install pdo_mysql && \
      pecl install redis && \
      curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
      && apt install -y nodejs \
      && npm install -g npm


RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini


